package com.changhongit.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 孙宏宇
 * @since 2022-10-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_user")
@ApiModel(value="User对象", description="")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "登录名称(用户名)")
    private String username;

    @ApiModelProperty(value = "登录密码")
    private String password;

    @ApiModelProperty(value = "帐户是否过期(1-未过期，0-已过期)")
    @TableField("is_account_non_expired")
    private Integer isAccountNonExpired;

    @ApiModelProperty(value = "帐户是否被锁定(1-未过期，0-已过期)")
    @TableField("is_account_non_locked")
    private Integer isAccountNonLocked;

    @ApiModelProperty(value = "密码是否过期(1-未过期，0-已过期)")
    @TableField("is_credentials_non_expired")
    private Integer isCredentialsNonExpired;

    @ApiModelProperty(value = "帐户是否可用(1-可用，0-禁用)")
    @TableField("is_enabled")
    private Integer isEnabled;

    @ApiModelProperty(value = "真实姓名")
    @TableField("real_name")
    private String realName;

    @ApiModelProperty(value = "昵称")
    @TableField("nick_name")
    private String nickName;

    @ApiModelProperty(value = "所属部门ID")
    @TableField("department_id")
    private Long departmentId;

    @ApiModelProperty(value = "所属部门名称")
    @TableField("department_name")
    private String departmentName;

    @ApiModelProperty(value = "性别(0-男，1-女)")
    private Integer gender;

    @ApiModelProperty(value = "电话")
    private String phone;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "用户头像")
    private String avatar;

    @ApiModelProperty(value = "是否是管理员(1-管理员)")
    @TableField("is_admin")
    private Integer isAdmin;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "是否删除(0-未删除，1-已删除)")
    @TableField("is_delete")
    private Integer isDelete;


}
